package com.andyliu.sys.service;

import com.andyliu.sys.dto.ResourceDto;
import com.andyliu.sys.dto.ResourceTableDto;
import com.andyliu.sys.pojo.SResource;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * ClassName: ResourceService
 * Description: TODO
 * date: 2021/1/20 5:04 下午
 *
 * @author andyliu
 * @since JDK 1.8
 */
public interface ResourceService {
    Boolean saveResource(SResource resource);

    Boolean deleteResourceById(Integer id);

    SResource selectResourceById(Integer id);

    PageInfo<SResource> selectResourceByPage(SResource resource, Integer pageNumber, Integer pageSize);

    Boolean deleteResourceById(Integer[] ids);

    List<ResourceDto> selectResources(Integer roleId);

    List<ResourceTableDto> queryForTable(SResource resource);
}
